import Vue from 'vue'
import Router from 'vue-router'

import header from '@/components/header/header'
import Login from '@/components/Login/Login'
import Words from '@/components/main/Words'
import AddWord from '@/components/main/AddWord'
import UpdWord from '@/components/main/UpdWord'
import UpdatePassword from '@/components/password/UpdatePassword'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/header',
      name: 'header',
      component: header
    },
    {
      path: '/Words',
      name: 'Words',
      component: Words
    },
    {
      path: '/AddWord',
      name: 'AddWord',
      component: AddWord
    },
    {
      path: '/UpdWord',
      name: 'UpdWord',
      component: UpdWord
    },
    {
      path: '/UpdatePassword',
      name: 'UpdatePassword',
      component: UpdatePassword
    },
  ]
})
